<template>
    <div style="width:100%;height:100%;">
        <iframe :src="url"
                width="100%"
                height="100%"></iframe>
        <myMenu></myMenu>
    </div>
</template>
<script>
import myMenu from '@/commonComponents/menu'
export default {
    name: 'preview',
    components: {
        myMenu
    },
    data () {
        return {
            url: ''
        }
    },
    created () {
        this.url = `./static/pdfjs/web/viewer.html?file=${this.$route.query.file}`
    }
}
</script>
